Atob reads an encoded file, strips off any leading and trailing lines added by mailers, and recreates a copy of the original file on the standard output. Atob gives NO output (and exits with an error message) if its input is garbage or the checksums do not check.
Tarmail is a shell script that tar's up all the given files, pipes them through compress, btoa, and mails them to the given person with the given subject phrase. For example:
tarmail ralph "here it is ralph" foo.c a.out
Will package up files "foo.c" and "a.out" and mail them to "ralph" using subject "here it is ralph". Notice the quotes on the subject. They are necessary to make it one argument to the shell.
Tarmail with no args will print a short message reminding you what the required args are. When the mail is received at the other end, that person should use mail to save the message in some temporary file name (say "xx"). Then saying "untarmail xx" will decode the message and untar it. Untarmail can also be used as a filter. By using tarmail, binary files and entire directory structures can be easily transmitted between machines. Naturally, you should understand what tar itself does before you use tarmail.
Other uses:
compress < secrets | crypt | btoa | mail ralph
will mail the encrypted contents of the file "secrets" to ralph. If ralph knows the encryption key, he can decode it by saving the mail (say in "xx"), and then running:
atob < xx | crypt | uncompress
(crypt requests the key from the terminal, and the "secrets" come out on the terminal).